package org.gp.core.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author LuoLiang
 * @since 2017-02-27
 */
@Data
public class Comment extends Model<Comment> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "id")
	private Integer id;

	/**
	 * 评论
	 */
	private String content;

	/**
	 * 评分
	 */
	private Integer score;

	/**
	 * 活动名称
	 */
	private String activityname;

	/**
	 * 发起人姓名
	 */
	private String sponsorname;

	/**
	 * 用户id
	 */
	@TableField(value="activity_id")
	private Integer activityId;

	/**
	 * 活动id
	 */
	@TableField(value="user_id")
	private Integer userId;

	@Override
	protected Serializable pkVal() {
		return id;
	}
}
